package cn.duxiaod.demo.jvm;

import java.util.ArrayList;
import java.util.List;

/**
 * jstack [ option ] vmid
 * 死循环测试
 */
public class EndlessLoopTestt {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        while (true){
            list.add(new String(")))J"));
            System.out.println(1);
        }
    }
}
